<?php
require dirname(__FILE__).'/../inc/inc.php';

//初始化请求的参数
$as_type=intval($as_type);
$page=$page?intval($page):1;

//配置页面信息
$page_config=array(
    'title' => '上海抵押贷款|上海无抵押贷款|上海低息贷款_红枫金融',
    'keywords' => '红枫金融，注册公司，代理记账，工商注册',
    'description' => '红枫金融主要提供注册公司、代理记账、税务筹划等服务，主营地区有北京|上海|广州|南京|苏州|无锡|杭州|宁波|武汉|长沙等，已拥有近十万家客户，致力于成为中国企业首选的财务管家。',
    'css' => array('base','info'),
);

//搜索条件
$where=" WHERE 1=1";
if ($as_type) $where.=" AND as_type={$as_type}";

//取出列表
$sql="SELECT id,title,keywords,description,add_time FROM wb_jinrong_info".$where." ORDER BY id DESC";
$count=$db->getCount('wb_jinrong_info',$where);
$sql=getPage($sql,10,$count);
$list=$db->getData($sql);

//导入头部文件
require PATH_INC.'/header.php';
?>

	<div class="wrap main">
		<?php require dirname(__FILE__).'/sidebar.php'; ?>

		<div class="PageC fl">
			<div class="position">您的位置：<a href="/">首页</a> &gt; <a href="/info/">资讯问答</a> &gt; <?php echo $as_type?$cf_jinrong_info_type[$as_type]:'全部'; ?></div>

			<ul class="list">
				<?php foreach ($list as $v) : ?>
				<li>
					<h2><a href="./content_<?php echo $v['id']; ?>.html" target="_blank"><?php echo $v['title']; ?></a></h2>
					<span><?php echo date('Y年m月d日',$v['add_time']); ?></span>
					<p><?php echo $v['description']; ?></p>
					<a href="./content_<?php echo $v['id']; ?>.html" class="detail" target="_blank">详细</a>
				</li>
				<?php endforeach; ?>
			</ul>
		</div>

		<div class="PageR fr">
			<div class="jdzx">
				<h2>焦点资讯</h2>
				<dl>
				<?php
				$list=$db->getData("SELECT id,title FROM wb_jinrong_info ORDER BY hit DESC LIMIT 3");
				foreach ($list as $v) {
					echo '<dd><a href="./content_'.$v['id'].'.html" target="_blank">'.$v['title'].'</a></dd>';
				}
				?>
				</dl>
			</div>

			<div class="yourlike">
				<h2>猜你喜欢</h2>
				<dl>
				<?php
				$list=$db->getData("SELECT id,title FROM wb_jinrong_info ORDER BY rand() DESC LIMIT 4");
				foreach ($list as $v) {
					echo '<dd><a href="./content_'.$v['id'].'.html" target="_blank">'.$v['title'].'</a></dd>';
				}
				?>
				</dl>
			</div>

			<div class="kefu">
				<a href="javascript:kefuzixun()">在线咨询</a>
			</div>
		</div>
	</div>
	<div class="paging"><?php echo htmllistPages('./list_'.$as_type.'_')?></div>
	<div class="botcen"></div>

	
<?php require PATH_INC.'/footer.php'; ?>

<script src="/static/js/index.js?v1.5"></script>
</body>
</html>

